#!/bin/sh

## Setting the CC environment variable may break some Makefiles or other
## languages like Go (with cgo).

for i in /usr/local/bin/cc /usr/bin/cc /bin/cc clang gcc; do
	command -v $i >/dev/null 2>&1 && exec $i "$@"
done
